import axios from '../axios'
import { ArticleConutType, UserConutType } from './type'

export const getUserCount = () => {
   return axios.request<UserConutType>({ method: 'get', url: 'admin/user/count' })
}

export const getArticleCount = () => {
   return axios.request<ArticleConutType>({ method: 'get', url: 'admin/article/count' })
}

export const getCommontCount = () => {
   return axios.request<{ count: number }>({ method: 'get', url: 'admin/commont/count' })
}
